//
//  NSString+Safe.m
//  DreamOf
//
//  Created by 薛小刚 on 2018/8/30.
//  Copyright © 2018年 薛小刚. All rights reserved.
//

#import "NSString+Safe.h"

@implementation NSString (Safe)

NSString * safeValue0(NSString * string) {
    if (ISNULL(string)) {
        return @"无";
    }
    return string;
}

NSString * safeValue1(NSString * string) {
    if (ISNULL(string)) {
        return @"0";
    }
    return string;
}

NSString * safeValue2(NSString * string) {
    if (ISNULL(string)) {
        return @" ";
    }
    return string;
}

NSString * safeValue3(NSString * string) {
    if (ISNULL(string)) {
        return @"";
    }
    return string;
}

@end
